[LINUX] 32on64 kdump: Allow a 32 bit kernel to read a 64 bit dump.
authorIan Campbell <ian.campbell@xensource.com>
Wed, 14 Mar 2007 16:58:30 +0000 (16:58 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Wed, 14 Mar 2007 16:58:30 +0000 (16:58 +0000)
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
patches/linux-2.6.18/crash-kernel-32-on-64.patch [new file with mode: 0644]
patches/linux-2.6.18/series

diff --git a/patches/linux-2.6.18/crash-kernel-32-on-64.patch b/patches/linux-2.6.18/crash-kernel-32-on-64.patch
new file mode 100644 (file)
index 0000000..8ea9378
--- /dev/null
@@ -0,0 +1,11 @@
+--- pristine-linux-2.6.18/include/asm-i386/elf.h       2006-09-20 04:42:06.000000000 +0100
++++ linux-2.6.18-xen/include/asm-i386/elf.h    2007-03-14 16:42:30.000000000 +0000
+@@ -36,7 +36,7 @@
+  * This is used to ensure we don't load something for the wrong architecture.
+  */
+ #define elf_check_arch(x) \
+-      (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
++      (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486) || ((x)->e_machine == EM_X86_64))
+ /*
+  * These are used to set parameters in the core dumps.
index 85bbae63e4ad93f3bbcc1cfea47fd9d2405c86a2..978fdacc421f324a95a10ac76eb8f2a351ca656e 100644 (file)
@@ -19,3 +19,4 @@ x86-elfnote-as-preprocessor-macro.patch
 fixaddr-top.patch
 git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4.patch
 softlockup-no-idle-hz.patch
+crash-kernel-32-on-64.patch